import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'
const routes: Array<RouteRecordRaw> = [
    {
        path: '/',
        component: () => import('@renderer/view/home/index.vue'),
        redirect: '/home',
        children: [
            {
                path: '/home',
                component: () => import('@renderer/view/home/hotRecommend/index.vue'),
            },
            {
                path: '/voicePackageDetail',
                component: () => import('@renderer/view/home/hotRecommend/voicePackageDetail.vue'),
            },
            {
                path: '/create',
                component: () => import('@renderer/view/create/packageCreate/index.vue'),
            },
            {
                path: '/myLike',
                component: () => import('@renderer/view/myLike/index.vue'),
            },
            {
                path: '/community',
                component: () => import('@renderer/view/community/index.vue'),
            },
            {
                path: '/postDetail',
                component: () => import('@renderer/view/community/postDetail.vue'),
            },
        ]
    }
]
const router = createRouter({
    history: createWebHashHistory(),
    routes,
})
export default router